package gdou.gym.service.space;

import com.github.pagehelper.PageInfo;
import gdou.gym.entity.SiteApplication;
import gdou.gym.entity.SpaceView;
import gdou.gym.returnvo.UserQueryInfoVo;
import gdou.gym.vo.Ask4SpaceVo;
import gdou.gym.vo.MyPageInfo;
import gdou.gym.vo.SpaceAndTimeVo;

import java.util.List;

public interface SpaceService {

    List<String> getSiteType();

    List<String> getSiteTime();

    List<SpaceView> queryByCondition(MyPageInfo<UserQueryInfoVo> vo, boolean containZero);

    void addNewSpace(SpaceAndTimeVo spaceAndTimeVo);

    void updateSpaceRemain(Integer id, Integer remain);

    void removeSpaceById(Integer id);

    SiteApplication ask4Space(SiteApplication request);

    void updateSiteApplication(SiteApplication request);


    PageInfo<SiteApplication> queryMyAsk(String applicant);

    PageInfo<SiteApplication> queryAskByCondition(MyPageInfo<Ask4SpaceVo> vo);


}
